package java4_6.Homework1;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
import java.util.Scanner;

public class Login {
    public static void main(String[] args) {
        try {
            Socket s1 = new Socket("127.0.0.01", 5253);
            BufferedReader bfr1 = new BufferedReader(new InputStreamReader(s1.getInputStream()));
            PrintWriter pw1 = new PrintWriter(s1.getOutputStream(), true);
            Scanner in = new Scanner(System.in);
            String usname = in.next();
            String usnmb = in.next();
            pw1.println(usname);
            pw1.println(usnmb);
            System.out.println(bfr1.readLine());
            s1.close();

        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
